package com.iotsz.device.service;

import com.iotsz.device.bean.Device;
import com.iotsz.user.bean.User;

import java.util.Map;

public interface DeviceService {
    Device getDevice(Integer id);

    Map<Device, User> getDeviceUser(Integer id);

    int updateByDevice(Device device);

    int deleteByPrimary(Integer id);

    int insertByDevice(Device device);
}
